package com.tang.model.expresion.number.impl;

import com.tang.model.expresion.number.abst.IArithmeticInterpreter;

/**
 * @Author tangyuan2meicloud.com
 * @DATE 2021/9/6 8:10
 * @Desc 整形类型的操作数
 * @Remarks
 */
public class NumberInterpreter implements IArithmeticInterpreter {

    private Integer number;

    public NumberInterpreter(String number) {
        if (null != number) {
            this.number = Integer.parseInt(number);
        }
    }


    @Override
    public Integer getNumber() {
        return number;
    }
}
